package uk.ac.glasgow.demosocs.tests;

import static org.junit.Assert.*;


import java.io.IOException;


import java.util.Date;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


import uk.ac.glasgow.demosocs.Election;
import uk.ac.glasgow.demosocs.VotingSystem;
import uk.ac.glasgow.demosocs.impl.VotingSystemStub;

public class ViewElectorateTest{

	VotingSystem vs;
	Election e;
	
	@Before
	public void setUp() throws Exception{
		vs = new VotingSystemStub();
		vs.setCurrentUser("002","pass");
		vs.createElection("test", "level3");	
		Date nominations = new Date("19/2/12");
		Date start = new Date("20/2/12");
		Date end = new Date("21/2/12");		
		vs.editElection(nominations,start, end, "001");	
		vs.setCurrentElection("test");		
	}

	@After
	public void tearDown() throws Exception{		
		vs = null;
	}

	@Test 
	public void testViewElectorate() throws IOException{
		System.out.println("View Electorate");			
		
	}
}